import absevnt from '../abseventsvc.js'
import {LGXEnums}  from '../../canvas/common/sysenum.js'
class Respond2PickPointSvc extends absevnt.IEventSvc {
    constructor() {
        super();
    }

    act(e) {
        console.log("Respond2PickPointSvc:xxx---------");
        let dstDlg = null;
        let type = window.selPointSrcDlgType;
        if (type == "circleArr"){
            dstDlg = window.circleArrayDlg.value;
        }
        else if (type == "rectArr"){
            dstDlg = window.rectArrayDlg.value;
        }
        if (dstDlg) {
            dstDlg.cntPoint = e.wx + "," + e.wy;
            dstDlg.visible = true;
        }
    }
}

export default { Respond2PickPointSvc }